import request from '@/utils/request'
import request1 from '../request'
/**原物料获取站内车辆*/
export function query_inner_car(data) {
  return request1({
    url: '/weight/system/outer/weight/query_inner_car',
    method: 'post',
    data
  })
}
/**原物料*/
/**通过车牌号站获取车辆信息*/
export function get_weight_consignment(data) {
  return request1({
    url: '/weight/system/outer/weight/get_weight_consignment',
    method: 'post',
    data
  })
}
/**根据站点id获取仓库列表*/
export function get_list(params) {
  return request1({
    url: '/weight/system/outer/weight/get_list',
    method: 'get',
    params
  })
}
/**获取原物料*/
export function get_materials_list(params) {
  return request1({
    url: '/weight/system/outer/weight/get_materials_list',
    method: 'get',
    params
  })
}
/**
获取当前站点所有的原物料过磅记录
*/
export function query_all_car(data) {
  return request1({
    url: '/weight/system/outer/weight/query_all_car',
    method: 'post',
    data
  })
}
/**保存或更新原物料过磅信息*/
export function save_or_update_consignment(data) {
  return request1({
    url: '/weight/system/outer/weight/save_or_update_consignment',
    method: 'post',
    data
  })
}
/**罐车*/
/**获取某个罐车出入站的数据*/
export function get_tank_car(data) {
  return request1({
    url: '/weight/system/outer/weight/get_tank_car',
    method: 'post',
    data
  })
}
/**
分页获取罐车的出入站记录
*/
export function query_weight_car(data) {
  return request1({
    url: '/weight/system/outer/weight/query_weight_car',
    method: 'post',
    data
  })
}
/**保存或更新罐车的出入站信息*/
export function save_or_update_car(data) {
  return request1({
    url: '/weight/system/outer/weight/save_or_update_car',
    method: 'post',
    data
  })
}
/**罐车皮重*/
/**根据站点id和车牌号获取罐车皮重的过磅数据*/
export function get_weight_tare(data) {
  return request1({
    url: '/weight/system/outer/weight/get_weight_tare',
    method: 'post',
    data
  })
}
/**
分页获取罐车皮重数据
*/
export function query_weight_tare(data) {
  return request1({
    url: '/weight/system/outer/weight/query_weight_tare',
    method: 'post',
    data
  })
}
/**保存或更新罐车的皮重信息*/
export function save_or_update_tare(data) {
  return request1({
    url: '/weight/system/outer/weight/save_or_update_tare',
    method: 'post',
    data
  })
}
/**罐车回站过磅后更新物流余料量*/
export function update_after_weighing(params) {
  return request({
    url: '/icps/outer/sign/outerApi/wigh/update_after_weighing',
    method: 'post',
    params
  })
}
/**获取原物料列表*/
export function QueryList(data) {
  return request({
    url: '/icps/outer/sign/outerApi/wigh/rawQueryList',
    method: 'get',
    params: data
  })
}
/**过磅管理-原物料统计*/
export function rawStatistics(data) {
  return request({
    url: '/icps/outer/sign/outerApi/wigh/rawStatistics',
    method: 'post',
    data
  })
}
/**仓库统计*/
export function raw_inventory_statistics(data) {
  return request({
    url: '/icps/outer/sign/outerApi/wigh/raw_inventory_statistics',
    method: 'get',
    params: data
  })
}
/**特材入库*/
/**-根据车牌号获取数据*/
export function getSpecialMaterialsInnerByNo(data) {
  return request1({
    url: '/weight/system/outer/weight/getSpecialMaterialsInnerByNo',
    method: 'post',
    data
  })
}
/**根据站点id获取成品列表*/
export function get_special_product_list(data) {
  return request1({
    url: '/weight/system/outer/weight/get_special_product_list',
    method: 'get',
    params: data
  })
}
/**根据站点id获取液位仪列表*/
export function get_meter_list(data) {
  return request1({
    url: '/weight/system/outer/weight/get_meter_list',
    method: 'get',
    params: data
  })
}
/**保存数据*/
export function saveOrUpdateSpecialMaterInner(data) {
  return request1({
    url: '/weight/system/outer/weight/saveOrUpdateSpecialMaterInner',
    method: 'post',
    data
  })
}

/**特材返料*/
/**根据车牌号获取数据*/
export function getSpecialMaterialsRevertByNo(data) {
  return request1({
    url: '/weight/system/outer/weight/getSpecialMaterialsRevertByNo',
    method: 'post',
    data
  })
}
/**保存数据*/
export function saveOrUpdateSpecialMaterRevert(data) {
  return request1({
    url: '/weight/system/outer/weight/saveOrUpdateSpecialMaterRevert',
    method: 'post',
    data
  })
}
/**
 * @Description: 登录
 * @Param: 
 * @Author: wangwangwang
 */

export function login(params) {
  return request({
    url: '/base/user/login',
    method: 'post',
    data: params,
  })
}
/**保存数据*/
export function rawSupplierSendMessage(data) {
  return request1({
    url: '/weight/system/outer/weight/rawSupplierSendMessage',
    method: 'post',
    data
  })
}
/**分页获取特材入库、特材返料出入库数据*/
export function querySpecialMaterialsInner(data) {
  return request1({
    url: '/weight/system/outer/weight/querySpecialMaterialsInner',
    method: 'post',
    data
  })
}
/**分页获取特材入库、特材返料站内车辆*/
export function queryInstationSpecialMaterial(data) {
  return request1({
    url: '/weight/system/outer/weight/queryInstationSpecialMaterial',
    method: 'post',
    data
  })
}